An if statement is a fundamental programming construct used to make decisions based on a condition. It allows a program to execute certain blocks of code only when a specified condition is true. If the condition evaluates to false, the code inside the if statement is skipped.
Flow Chart of If Statement
Syntax of If Statement
(Include the syntax explanation or diagram here.)
Example: Check Whether the Number is Positive
#include < stdio.h>
void main()
{
int number = 10;
if (number > 0)
{
printf("The number is positive.\n");
}
}